package com.hdyg.sixg.adapter;

import android.support.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hdyg.sixg.R;
import com.hdyg.sixg.entry.ExchangeBean;
import java.util.List;

/**
 * @author CZB
 * @describe 托管钱包转出适配器
 * @time 2019/4/11 14:22
 */
public class HostTransAdapter extends BaseQuickAdapter<ExchangeBean.ListBean, BaseViewHolder> {
    public HostTransAdapter(int layoutResId, @Nullable List<ExchangeBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ExchangeBean.ListBean item) {
        if (item.isIs_select()){
            helper.setImageResource(R.id.iv_image,R.mipmap.radio_select);
        }else {
            helper.setImageResource(R.id.iv_image,R.mipmap.radio_gray);
        }
        helper.setText(R.id.tv_name,item.getDesc());
    }
}
